<?php
/**
 * Created by PhpStorm.
 * UserModel: Administrator
 * Date: 2019/11/27/027
 * Time: 22:50
 */

namespace App\Traits;


trait PayTrait
{

    protected $prefix = 'QSMY';

    protected $title = 'QSMY';

    protected static $alipay = [
        'notify_url' => '/api/v1/pay/notify',  // 支付宝异步通知地址
        'refund_notify_url' => '/api/v1/pay/refundNotify',  // 支付宝异步通知地址
        'app_id' => '2021004159633127',
        'ali_public_key' => 'MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlTbbSZTwJyH1j3u8bpARBa605wrZ82/Vd41km+d/AETTQh0oe6CiwXGqkhMNjUgWSC1kgLqNd6dSG1YGoOyDsyTLOJjXas8C3rchMkCuF6Q5BYcatzCYWCLv2Xx0vjF6HkkIaIYiab3CHD1F3nLRSj5hoFVxvlbYp8g/qd+KvPWnkcsEv6M4BfVvHxJ5m12wMXJfZ75duPwBEoxvEHqnZgLuVopwQRfpskkogTcrK13wGJDmljs8oUe7dKM4emcqvkGAGLWi5FjFy3pC8x4ftrqWRFtQ55ed0H5Ce9rmY0c70te6CbDiQ2Sh0lXm/DLTu/GotLt3/aR4aHslBF6HNQIDAQAB',
        'private_key' => 'MIIEogIBAAKCAQEAlTbbSZTwJyH1j3u8bpARBa605wrZ82/Vd41km+d/AETTQh0oe6CiwXGqkhMNjUgWSC1kgLqNd6dSG1YGoOyDsyTLOJjXas8C3rchMkCuF6Q5BYcatzCYWCLv2Xx0vjF6HkkIaIYiab3CHD1F3nLRSj5hoFVxvlbYp8g/qd+KvPWnkcsEv6M4BfVvHxJ5m12wMXJfZ75duPwBEoxvEHqnZgLuVopwQRfpskkogTcrK13wGJDmljs8oUe7dKM4emcqvkGAGLWi5FjFy3pC8x4ftrqWRFtQ55ed0H5Ce9rmY0c70te6CbDiQ2Sh0lXm/DLTu/GotLt3/aR4aHslBF6HNQIDAQABAoIBAEi8m/rrgoHg+P4/uCRBUDrv5jl2PbaAfpOvtiqVl4A/DKh+5DwXmx8nVJmud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m4nIkW7JG2B8thnv9/0jb18xT0rLPT5xF9YY4LX5wGKf+C9KrVMfnpjdEGfbIfNLqIaiuktkV0wGA=',
        'mode' => 'service',
        'log' => [
            'file' => '',
            'level' => 'info', // 建议生产环境等级调整为 info，开发环境为 debug
            'type' => 'daily', // optional, 可选 daily.
            'max_file' => 30, // optional, 当 type 为 daily 时有效，默认 30 天
        ],
//        'mode' => 'dev', // 默认使用开发模式
        'http' => [
            'timeout' => 5.0,
            'connect_timeout' => 5.0,
        ]
    ];

    protected static $wechat = [
        'miniapp_id' => 'wxaae7afcc3d19a1e8',
        'appid' => 'wx1f5320257f5b554b', // APP APPID
        'app_id' => 'wx93bbb2b26b0ffe90', // 公众号 APPID
        'mch_id' => 1669769152,
        'key' => 'f56037470787ee9ac38f41df5148db82',
        'cert_client' => './storage/app/cert/wechat/apiclient_cert.pem', // optional，退款等情况时用到
        'cert_key' => './storage/app/cert/wechat/apiclient_key.pem', // optional，退款等情况时用到
        'notify_url' => '/api/v1/pay/callback',
        'refund_notify_url' => '/api/v1/pay/refundCallback',
    ];
}
